package Route

import (
	"Volta/App/Http/Controllers"
	"Volta/App/Http/Middlewares"
	"github.com/gin-gonic/gin"
)

func RegisterRoute(router *gin.Engine) {
	router.Use(gin.Logger())

	router.NoRoute(Controllers.Error404)  //404统一返回值:访问的路由或者请求方法不正确，都会命中这里
	router.GET("/ping", Controllers.Ping) // 健康检查

	//.小程序全局配置信息
	v := router.Group("/api")
	v.Use(Middlewares.Cors())
	{

	}
}
